<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <script>
        var MyGlobal = {};
        MyGlobal.name = "zhourui";
        MyGlobal.f1 = function(a, b){
            return a + b;//函数也得绑进去
        }
        const a = 1;
        a = 2;
    </script>
</body>
</html>